package com.yzt.zhuju.arouter;

import com.alibaba.android.arouter.launcher.ARouter;

/**
 * author : bob
 * date   : 2022/11/30
 * desc   :
 */
public class RouterUser {

    //用户详情页面
    public static final String ACTIVITY_PERSONAL_DETAIL = "/user/PersonalDetailActivity";

    //用户信息编辑页面
    public static final String ACTIVITY_PERSON_DETAIL_EDIT = "/user/PersonDetailEditActivity";

    //用户信息编辑页面
    public static final String ACTIVITY_MATCH_PROFILE = "/user/MatchProfileActivity";

    //好友页面
    public static final String ACTIVITY_FRIEND_LIST_ACTIVITY = "/user/FriendListActivity";

    /**
     * 用户详情页面
     */
    public static void PersonalDetailActivity(String userId) {
        PersonalDetailActivity(userId, 0, "");
    }


    /**
     * 用户详情页面
     */
    public static void PersonalDetailActivity(String userId, int type) {
        PersonalDetailActivity(userId, type, "");
    }

    /**
     * 用户详情页面
     */
    public static void PersonalDetailActivity(String userId, String entrance) {
        ARouter.getInstance().build(ACTIVITY_PERSONAL_DETAIL).withString("mUserId", userId).withInt("type", 0).navigation();
    }

    /**
     * 用户详情页面
     */
    public static void PersonalDetailActivity(String userId, int type, String entrance) {
        ARouter.getInstance().build(ACTIVITY_PERSONAL_DETAIL).withString("mUserId", userId).withInt("type", type).navigation();
    }

    /**
     * 用户详情编辑页面
     */
    public static void PersonDetailEditActivity(String userId) {
        ARouter.getInstance().build(ACTIVITY_PERSON_DETAIL_EDIT).withString("mUserId", userId).navigation();
    }

    public static class FriendType {
        public static final int TYPE_FOLLOW = 0;
        public static final int TYPE_FANS = 1;
        public static final int TYPE_FRIEND = 2;
    }

    /**
     * 好友/访客/关注列表
     */
    public static void FriendListActivity(int type, String userId) {
        ARouter.getInstance().build(ACTIVITY_FRIEND_LIST_ACTIVITY)
                .withInt("mType", type)
                .withString("mUserId", userId)
                .navigation();
    }
}
